/**
 * 
 */
package com.scalyze.apps.socialanyltics.auth.api;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
 * @author vivek.mishra
 *
 */
public final class BasicAuthenticator
{

    
    public static void authenticate()
    {
        final String username = "mevivs";
        final String password = "cyberlake";

        Authenticator.setDefault(new Authenticator() {
          @Override
          protected PasswordAuthentication getPasswordAuthentication() {
            return new PasswordAuthentication(username, password.toCharArray());
          }
        });
    }
}
